import request from '@/utils/request'

// 查询车辆成交说明列表
export function listExplain(query) {
  return request({
    url: '/scp/explain/list',
    method: 'get',
    params: query
  })
}

// 查询车辆成交说明详细
export function getExplain(explainId) {
  return request({
    url: '/scp/explain/' + explainId,
    method: 'get'
  })
}

// 新增车辆成交说明
export function addExplain(data) {
  return request({
    url: '/scp/explain',
    method: 'post',
    data: data
  })
}

// 修改车辆成交说明
export function updateExplain(data) {
  return request({
    url: '/scp/explain',
    method: 'put',
    data: data
  })
}

// 删除车辆成交说明
export function delExplain(explainId) {
  return request({
    url: '/scp/explain/' + explainId,
    method: 'delete'
  })
}
